package com.wms.entity;

import java.io.Serializable;

import java.math.BigDecimal;
import java.util.Date;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;


/**
*
* @TableName order_purchase
*/
@Data
@ColumnWidth(value = 20)
@HeadRowHeight(value = 20)
public class OrderPurchase implements Serializable {

    /**
    * 采购订单号（唯一业务标识）
    */
    private String id;
    /**
    * 采购供应商
    */
    @ExcelProperty(value = "采购供应商")
    private String supplier;
    /**
    * 采购仓库
    */
    @ExcelProperty(value = "采购仓库")
    private String warehouse;
    /**
    * 采购量（最小单位计数）
    */
    @ExcelProperty(value = "采购量")
    private Integer quantity;
    /**
    * 采购单价(元)
    */
    @ExcelProperty(value = "采购单价(元)")
    private BigDecimal unitPrice;
    /**
    * 含税金额(元)
    */
    @ExcelProperty(value = "含税金额(元)")
    private BigDecimal taxAmount;
    /**
    * 价税合计(元)
    */
    @ExcelIgnore
    private BigDecimal totalAmount;
    /**
    * 要货日
    */
    @ExcelProperty(value = "要货日")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date deliveryDate;
    /**
    * 订单状态
    */
    @ExcelIgnore
    private String orderStatus;
    /**
    * 采购员
    */
    @ExcelIgnore
    private String purchaser;
    /**
    * 创建时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "创建时间")
    private Date createTime;
    /**
    * 删除标志（0代表存在 2代表删除）
    */
    @ExcelIgnore
    private String delFlag;
    @ExcelIgnore
    private String remark;
    @ExcelIgnore
    private String goodName;
    @ExcelIgnore
    private String goodImageUrl;
    @ExcelIgnore
    private String auditReason;

}
